import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'report_form_period_status_monitoring' })
export default class ReportFormPeriodStatusMonitoring extends BaseEntity {
  @Column({ type: 'varchar', length: 50, name: 'machine_code', comment: '设备编号' })
  @ApiProperty()
  machineCode: string;

  @Column({
    type: 'datetime',
    name: 'start_time',
    nullable: true,
    comment: '开始时间',
  })
  @ApiProperty()
  startTime: Date;

  @Column({ type: 'datetime', name: 'end_time', nullable: true, comment: '结束时间' })
  @ApiProperty()
  endTime: Date;

  @Column({ type: 'float', name: 'machine_status', nullable: true, comment: '设备状态' })
  @ApiProperty()
  machineStatus: number;
}
